$(function(){
	
	router.start({
        view: '#body_container',
        errorTemplateId: '#error', // 可选
        router: {
            'products': {
                templateUrl: './products.html',
                controller: '',
                styles:''
            },
            'chart' : {
            	templateUrl: './chart.html',
                controller: './js/chart/chart.js',
                styles:'./css/viewcss/chart.css'
            },
//            'planScheduling' : {
//            	templateUrl: './planScheduling.html',
//            	controller: '',
//                styles:''
//            },
            'planScheduling' : {
            	templateUrl: './planScheduling.html',
            	controller: './js/planSchedul/planSchedul.js',
                styles:'./css/viewcss/planSchedul.css'
            },
            'arrangementPost' : {
            	templateUrl: './arrangementPost.html',
            	controller: './js/arrangementPost/arrangementPost.js',
            	styles: './css/viewcss/arrangementPost.css',
            },
            'postModel' : {
            	templateUrl: './postModel.html',
            	controller: './js/arrangementPost/postModel.js',
            	styles: './css/viewcss/postModel.css',
            },
            'list' : {
            	templateUrl: './list.html',
            	controller: './js/list/list.js',
            	styles: './css/viewcss/list.css',
            },
            'postList' : {
            	templateUrl: './postList.html',
            	controller: './js/list/postList.js',
            	styles: './css/viewcss/postList.css',
            },
//            'defaults': 'products' //默认路由
        }
    });

});
